﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;

namespace Ayatta.Contract.Domain
{
    public abstract class Category : IEntity<int>
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public int ParentId { get; set; }
        public byte Hierarchy { get; set; }
        public int Priority { get; set; }
        public bool IsLeaf { get; set; }
        public string Description { get; set; }
        public string Extra { get; set; }

        public virtual IList<Category> Children { get; set; }
    }
}
